.class Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;
.super Ljava/lang/Object;
.source "MusicControllerView.java"

# interfaces
.implements Landroid/view/View$OnAttachStateChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;


# direct methods
.method constructor <init>(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V
    .registers 2
    .param p1, "this$0"    # Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    .prologue
    .line 164
    iput-object p1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onViewAttachedToWindow(Landroid/view/View;)V
    .registers 10
    .param p1, "v"    # Landroid/view/View;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/16 v7, 0x8

    const/4 v6, 0x0

    .line 181
    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0x15

    if-ge v3, v4, :cond_14

    .line 182
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-static {v3, v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerReceiver;->register(Landroid/content/Context;Lcom/zuimeia/ui/musiccontroller/IMusicController;)V

    .line 185
    :cond_14
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    iget-object v4, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mAudioManager:Landroid/media/AudioManager;
    invoke-static {v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$300(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/AudioManager;

    move-result-object v4

    invoke-virtual {v4}, Landroid/media/AudioManager;->isMusicActive()Z

    move-result v4

    # setter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3, v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$402(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)Z

    .line 186
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # invokes: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getCurMediaPlayerComponentName()Ljava/lang/String;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$500(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/lang/String;

    move-result-object v0

    .line 187
    .local v0, "curMediaPlayerPackage":Ljava/lang/String;
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z

    move-result v3

    if-eqz v3, :cond_5c

    .line 188
    const-string v3, "MyMusic"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "onViewAttachedToWindow packageName = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 189
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_5c

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {v3, v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->isRunning(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_5c

    .line 190
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # setter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3, v6}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$402(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)Z

    .line 194
    :cond_5c
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z

    move-result v3

    if-eqz v3, :cond_d3

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$600(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/session/MediaController;

    move-result-object v3

    if-eqz v3, :cond_d3

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnSupportMediaSessionList:Ljava/util/List;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$700(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_d3

    .line 197
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$600(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/session/MediaController;

    move-result-object v3

    if-eqz v3, :cond_a7

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$600(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/session/MediaController;

    move-result-object v3

    invoke-virtual {v3}, Landroid/media/session/MediaController;->getPlaybackState()Landroid/media/session/PlaybackState;

    move-result-object v3

    if-eqz v3, :cond_a7

    .line 198
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    iget-object v4, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mMediaController:Landroid/media/session/MediaController;
    invoke-static {v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$600(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/session/MediaController;

    move-result-object v4

    invoke-virtual {v4}, Landroid/media/session/MediaController;->getPlaybackState()Landroid/media/session/PlaybackState;

    move-result-object v4

    invoke-virtual {v4}, Landroid/media/session/PlaybackState;->getState()I

    move-result v4

    # invokes: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->isPlayingState(I)Z
    invoke-static {v3, v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$800(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;I)Z

    move-result v3

    if-nez v3, :cond_a7

    .line 199
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # setter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3, v6}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$402(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)Z

    .line 242
    :cond_a7
    :goto_a7
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z

    move-result v3

    if-nez v3, :cond_b4

    .line 243
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {v3, v7}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->setVisibility(I)V

    .line 246
    :cond_b4
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mOnVisibilityChangedListeners:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$1100(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_cd

    .line 247
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getVisibility()I

    move-result v3

    if-ne v3, v7, :cond_1a5

    .line 248
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # invokes: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->performVisibilityChangeListener(Z)V
    invoke-static {v3, v6}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$1200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)V

    .line 254
    :cond_cd
    :goto_cd
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # invokes: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->updatePlayPauseBtnStatus()V
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$1300(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)V

    .line 255
    return-void

    .line 203
    :cond_d3
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z

    move-result v3

    if-eqz v3, :cond_184

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/RemoteController;

    move-result-object v3

    if-eqz v3, :cond_184

    .line 204
    const-string v3, "MyMusic"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "onViewAttachedToWindow mRemoteController = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;
    invoke-static {v5}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/RemoteController;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 205
    const/4 v2, 0x0

    .line 207
    .local v2, "ret":Z
    :try_start_102
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mAudioManager:Landroid/media/AudioManager;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$300(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/AudioManager;

    move-result-object v3

    iget-object v4, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;
    invoke-static {v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/RemoteController;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/media/AudioManager;->registerRemoteController(Landroid/media/RemoteController;)Z

    move-result v2

    .line 208
    const-string v3, "MyMusic"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "onViewAttachedToWindow ret = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_12a
    .catch Ljava/lang/Exception; {:try_start_102 .. :try_end_12a} :catch_17c

    .line 213
    :goto_12a
    if-nez v2, :cond_13d

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportOldMusicApiList:Ljava/util/List;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$900(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_13d

    .line 214
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # setter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3, v6}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$402(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)Z

    .line 218
    :cond_13d
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z

    move-result v3

    if-eqz v3, :cond_162

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportOldMusicApiList:Ljava/util/List;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$900(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_162

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportControlList:Ljava/util/List;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$1000(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_162

    .line 219
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # setter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3, v6}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$402(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)Z

    .line 225
    :cond_162
    const-string v3, "MyMusic"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "onViewAttachedToWindow registerRemoteController = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_a7

    .line 209
    :catch_17c
    move-exception v1

    .line 210
    .local v1, "e":Ljava/lang/Exception;
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    const/4 v4, 0x0

    # setter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;
    invoke-static {v3, v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$202(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Landroid/media/RemoteController;)Landroid/media/RemoteController;

    goto :goto_12a

    .line 232
    .end local v1    # "e":Ljava/lang/Exception;
    .end local v2    # "ret":Z
    :cond_184
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$400(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Z

    move-result v3

    if-eqz v3, :cond_a7

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_19e

    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mUnsupportOldMusicApiList:Ljava/util/List;
    invoke-static {v3}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$900(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_a7

    .line 233
    :cond_19e
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # setter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mIsMusicActive:Z
    invoke-static {v3, v6}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$402(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)Z

    goto/16 :goto_a7

    .line 250
    :cond_1a5
    iget-object v3, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    const/4 v4, 0x1

    # invokes: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->performVisibilityChangeListener(Z)V
    invoke-static {v3, v4}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$1200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;Z)V

    goto/16 :goto_cd
.end method

.method public onViewDetachedFromWindow(Landroid/view/View;)V
    .registers 4
    .param p1, "v"    # Landroid/view/View;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    .line 170
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    invoke-virtual {v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerReceiver;->unregister(Landroid/content/Context;)V

    .line 172
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;
    invoke-static {v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/RemoteController;

    move-result-object v0

    if-eqz v0, :cond_20

    .line 173
    iget-object v0, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mAudioManager:Landroid/media/AudioManager;
    invoke-static {v0}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$300(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/AudioManager;

    move-result-object v0

    iget-object v1, p0, Lcom/zuimeia/ui/musiccontroller/MusicControllerView$2;->this$0:Lcom/zuimeia/ui/musiccontroller/MusicControllerView;

    # getter for: Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->mRemoteController:Landroid/media/RemoteController;
    invoke-static {v1}, Lcom/zuimeia/ui/musiccontroller/MusicControllerView;->access$200(Lcom/zuimeia/ui/musiccontroller/MusicControllerView;)Landroid/media/RemoteController;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/media/AudioManager;->unregisterRemoteController(Landroid/media/RemoteController;)V

    .line 176
    :cond_20
    return-void
.end method
